<template>
    <div>首页</div>
    <button @click=handleGoLogin>登录</button>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter()

const handleGoLogin = () => {
    router.push('/login')
}
</script>